<template>
<div>
  <div id="top">
    <div id="topBar">
      <router-link :to="{name:'principle'}"><van-icon name="arrow-left" style="float: left;margin-top: 0.5rem;margin-left: 0.5rem"/>
        <p style="float: left">个人中心</p></router-link>
    </div>
  </div>
  <div id="mid">
    <div class="big">
      <div class="pic">

      </div>
      <p class="left">个人等级</p>
      <van-icon style="float: right;line-height: 3rem;" name="arrow" size="1rem" />
      <p class="right">{{name}}</p>
    </div>
    <div class="big">
      <div class="pic">
      </div>
      <p class="left">积分记录</p>
      <van-icon style="float: right;line-height: 3rem;" name="arrow" size="1rem" />
      <p class="right">{{points}}</p>
    </div>

    <div class="big">
      <div class="pic">
      </div>
      <p class="left">兑换记录</p>
      <van-icon style="float: right;line-height: 3rem;" name="arrow" size="1rem" />
    </div>
    <div class="big">
      <div class="pic">

      </div>
      <p class="left">我的券</p>
      <van-icon style="float: right;line-height: 3rem;" name="arrow" size="1rem" />
    </div>
  </div>
  <div id="foot">
    <div class="big small">
      <div class="pic">

      </div>
      <p class="left">我的券</p>
      <van-icon style="float: right;line-height: 3rem;" name="arrow" size="1rem" />
    </div>
  </div>
</div>
</template>

<script>
    export default {
        name: "me",
      data(){
          return{
            name:'宇宙主宰',
            points:2000000,
          }
      }
    }
</script>

<style scoped>
  #top{
    width: 100%;
    height:3rem;
    background: red;
    overflow: hidden;
    position: relative;
  }
  #topBar{
    height: 2rem;
    width: 100%;
    line-height: 2rem;
    background: papayawhip;
    color:black;
    font-size: 1rem;
    margin-top: 1rem;
  }
  #topBar p{
    display: inline-block;
  }
  #mid{
    height: 15rem;
    margin: 0 0.5rem;
    width: auto;
    box-sizing: border-box;
    border: #39a9ed dotted 0.2rem;
    border-bottom: none;
    margin-top: 1.5rem;
  }
  .big{
    height: 25%;
    width: 100%;
    box-sizing: border-box;
    border-bottom: #39a9ed dotted 0.2rem;
    padding: 0.3rem 0.5rem;
  }
  .pic{
    height: 100%;
    width: 3rem;
    background: red;
    display: inline-block;
    float: left;
  }
  .left{
    display: inline-block;
    line-height:3rem;
    height: 100%;
    float: left;
    font-size: 1rem;
    font-weight: bold;
    color: #39a9ed;
    margin-left: 1rem;
    width: 4rem;
  }
  .right{
    display: inline-block;
    line-height:3rem;
    height: 100%;
    float: right;
    margin-right: 0.5rem;
    font-size: 0.9rem;
  }
  #foot{
    margin: 0 0.5rem;
    width: auto;
    box-sizing: border-box;
    border: #39a9ed dotted 0.2rem;
   margin-top: 4rem;
    height: 3.9rem;
  }
  .small{
    height: 100%;
    border-bottom: none;
  }
</style>
